﻿using Spire.Doc;
using System;

namespace WordOpenXmlClassConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            Word2PDF();
        }
        public static void Word2PDF()
        {
            Document document = new Document();
            document.LoadFromFile("D:/Documents/Gitee/winform-word-tool/WordOpenXmlFormApp/bin/Debug/20191017/1571297988.docx");
            document.SaveToFile("C:/Users/SHENHUANJIE/Desktop/wordToRtf.rtf", FileFormat.Rtf);
        }
    }
}
